<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>

<style type="text/css">
th{background:#EFEFEF}
.edit span{background:#efefef;}
.search {margin:5px;}
.search input {color:#444;}
td.img img{cursor:pointer}
</style>

</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<link href="<?php echo $this->_webroot('/user/css/shoprequest.css'); ?>" rel="stylesheet" type="text/css" />   
    <div class="main-right main_right">
            <div class="cont">

	            <div class="cont_title">添加卖家回复</div>
	            <hr />
			<form action="<?php echo $this->_url('guestbook/sellerreply/');?>?id=<?php echo $result['id'];?>" name="form1" method="post" onsubmit="return check();">
			<table width="100%" style="border:0" cellspacing="0">
				<tr class="center">
					<td class="textright" width="180px;">姓名:</td>
					<td class="textleft"><?php echo  $result['name'];?></td>
				</tr>
				<tr class="center">
					<td class="textright">邮箱:</td>
					<td class="textleft"><?php echo  $result['email'];?></td>
				</tr>
				<tr class="center">
					<td class="textright">其它联系:</td>
					<td class="textleft"><?php echo  $result['contact'];?></td>
				</tr>
				<tr class="center">
					<td class="textright">留言内容:</td>
					<td class="textleft"><?php echo  $result['content'];?></td>
				</tr>
				<tr class="center">
					<td class="textright">我的回复:</td>
					<td class="textleft"><?php echo  $result['reply'];?></td>
				</tr>
				<tr class="center">
					<td class="textright">添加日期:</td>
					<td class="textleft"><?php echo  substr($result['add_time'],0,16);?></td>
				</tr>
				<?php if($result['reply']=="") {?>
				<tr>
					<th class="textleft" colspan="2">
						我要回复
					</th>
				</tr>
				<tr>
					<td class="textright" valign="top">回复内容</td>
					<td class="textleft">
						<textarea rows="4" cols="50" id="reply" name="reply" onkeyup="this.value=this.value.slice(0,300);"></textarea>
					</td>
				</tr>
				<tr><td></td>
					<td>
						<input class="submit" type="submit" value="提 交"/>
					</td>
				</tr>
				<?php }?>
			</table>
			</form>
			  
			  
            </div>
    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>

<script language="JavaScript">
function Trim(center) {
	return center.replace(/\s+$|^\s+/g,"");
}
function check(){
	var center = Trim(document.form1.reply.value);
	var textareac = document.getElementById("reply");
	if(center == ""){
		alert("回复内容不能为空！");
		document.form1.reply.value = center;
		return false;
	}
	if(textareac.value.length>300){
		alert("输入字数超长");
		textareac.focus();
		return false;
	}
}
</script>
</body>
</html>